<%@page import="blog.controller.UserController"%>
<%@ page errorPage="../jsp/exceptionHandler.jsp" %>

    <div id = "menu">
    <div id = "login">
    	<jsp:include page="login.jsp"/>
		<br/>
		<%if(UserController.isLogged(session)) {%>
		<br/>
		<br/>
		<a href = "DirectionAction.do?type=us">Ustawienia</a><br/>
		<a href = "DirectionAction.do?type=ab">Nowy blog</a><br/>
		<%if(UserController.isAdmin(session)) {%>
				
		<a href = "DirectionAction.do?type=a">Panel administratora</a><br/>
		
		<%} %>
		<br>
		<%} %>
	</div>	
		<div id = "myBlogs">
		<a href = "DirectionAction.do?type=all">Blogi</a><br/>
		
		
		<%if(UserController.isLogged(session)) {%>
				
			<jsp:include page="myBlogs.jsp"/> 
		
		<%} %>
		</div>
	</div>